<h3>Editing pro_image</h3>
<% form_for(@pro_image,:html=>{:multipart=>true}) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :image %><br />
    <%= f.file_field :image %><%=image_tag("/images/proimages/#{@pro_image.name.gsub(".","_s.")}",:size=>"30x30") if @pro_image.name%>
  
   <%=f.hidden_field :img_type_id %>
    <%#= f.select :img_type_id,@img_type.collect{|v| [v.description,v.id]},:disabled=>false%>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>
<%= link_to '该产品图片', product_pro_images_path(@pro_image.product_id) %>
